﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrayParrot.Configuration;
using GrayParrot.ServiceBroker.Configuration;

namespace TestServiceBroker
{
    class Program
    {
        static void Main(string[] args)
        {
            TestServiceBroker();
        }

        private static void TestServiceBroker()
        {
            //ConfigurationManagerHelper pp = new ConfigurationManagerHelper();
            //Subscription m_subs = pp.GetSubscription("feeds");
            //GrayParrot.ServiceBroker.Publisher m_pub = new GrayParrot.ServiceBroker.Publisher(m_subs);
            //for (int i = 0; i < 10; i++) m_pub.Send(string.Format("ciao ciao ciao {0}", i));


            TestServiceBrokerSubscriber m_tsb = new TestServiceBrokerSubscriber();
            m_tsb.Init();
        }
    }
}
